package com.lqq.designPattern.structural_pattern.adapter.classAdapter;

//测试类
public class Client {
    public static void main(String[] args) {
        //创建计算机类
        Computer computer = new Computer();
        //读取SD卡的数据
        String sdData = computer.readSD(new SDCardImpl());
        System.out.println(sdData);

        System.out.println("=============================");
        //使用该电脑读取TF卡数据
        //定义适配器类
        String tfData = computer.readSD(new SDAdapterTF());
        System.out.println(tfData);
    }
}
